package com.qfjy.homework.huzhongtian;

/**
 * @author: 胡中天
 * @date: 2022/6/29 18:59
 * @VERSION: 1.0
 */
public class Circle implements Shape{


    private  String color; // 圆的颜色
    private  int x;
    private  int y;
    private  int radius; // 圆的半径

    public Circle() {
    }

    public Circle(String color) {
        this.color = color;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getRadius() {
        return radius;
    }

    public void setRadius(int radius) {
        this.radius = radius;
    }

//    画圆
    @Override
    public void draw() {
        System.out.println("画圆：Color:" + color
                +", x : " + x +", y :" + y +", radius :" + radius);
    }
}
